#!/bin/bash
yum -y install autoconf automake gcc-c++ git-core libjpeg-devel libtool make ncurses-devel
yum -y install unixODBC-devel openssl-devel gnutls-devel libogg-devel libvorbis-devel curl-devel libtiff-devel libjpeg-devel python-devel expat-devel zlib zlib-devel bzip2
cd /usr/local/src
git clone git://git.freeswitch.org/freeswitch.git
cd freeswitch
./bootstrap.sh
./configure
# configure modules -> mod_flite
sed -i "s/^\(#\)\(.*mod_flite\)/\2/" modules.conf
make && make install
ln -s /usr/local/freeswitch/bin/fs_cli /usr/bin/
make all cd-sounds-install cd-moh-install

